﻿using System;
using System.Web.UI.HtmlControls;

namespace Malu.WebTemplates
{
    public class DetailMaster : System.Web.UI.MasterPage
    {
        protected HtmlTableRow trSimpleInfo;
        protected HtmlTableRow trTabber;

        public bool UseTabber
        {
            get
            {
                if (ViewState["UseTabber"] == null)
                    ViewState["UseTabber"] = false;
                return (bool)ViewState["UseTabber"];
            }
            set
            {
                ViewState["UseTabber"] = value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (UseTabber)
                trSimpleInfo.Visible = false;
            else
                trTabber.Visible = false;
        }
    }
}